import { RouterModule } from '@angular/router';
import { HosplistComponent } from './hosplist/hosplist.component';
import { HospindexComponent } from './hospindex/hospindex.component';

export const HospInfoRoutes = [
  {
    path: '',
    redirectTo: 'hosplist',
    pathMatch: 'full'
  },
  {
    path: 'hosplist',
    component: HosplistComponent
  },
  {
    path: 'hospindex/:id',
    component: HospindexComponent
  }
];
